class Quiz < ActiveRecord::Base
  has_many :questions
  belongs_to :user
  serialize :scoring
  validates :title,  :presence => true
  validates :description, :presence => true
  validates :scoring,  :presence => true, :format => /^[0-9]+[ ].+$/
end
